package com.atguigu.gmall.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

//@EnableCircuitBreaker //服务发现
//@EnableDiscoveryClient //服务熔断
//@SpringBootApplication(exclude = DataSourceTransactionManagerAutoConfiguration.class)
@SpringCloudApplication
@EnableFeignClients(basePackages = {"com.atguigu.gmall.feign.product",
                                   "com.atguigu.gmall.feign.item",
                                   "com.atguigu.gmall.feign.search"}) //远程调用
public class WebAllApplication{
    public static void main(String[] args) {
        SpringApplication.run(WebAllApplication.class, args);
    }
}